<script id="demandeInterventionTemplate" type="text/x-jsrender">
{^{if infos.messageOK}}
<div data-alert class="alert-box success radius">
    {{:infos.messageOK}}
    <a href="#" class="close">&times;</a>
</div>
{{/if}}
<h2>Demande d'intervention</h2>

<form id="demandeInterventionForm">
    <div class="row">
        <div class="large-6">
            <label>Adresse
                <select name="idAdresse">
                    {{for infos.adresses}}
                    <option value="{{:idAdresse}}">
                        {{:noRue}} {{:rue}}, {{:cp}} {{:ville}}, {{:pays}}
                    </option>
                    {{/for}}
                </select>
            </label>
        </div>
        <div class="large-6">
            <label>Rêve
                <select name="idReve">
                    {{for infos.reves}}
                    <option value="{{:idReve}}">
                        {{:nom}}
                    </option>
                    {{/for}}
                </select>
            </label>
        </div>
    </div>
    <input type="submit" class="button" value="Demander"/>
</form>
</script>

<script type="application/javascript">
    require(["jquery"], function () {
        $(document).ready(function () {
            require(["projetDreamIntervention"], function () {
                projetDreamIntervention.initDemandeIntervention();
            });
        });
    });
</script>